﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="quanlylophoc.aspx.cs" Inherits="webtracuudiem.quanlylophoc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            width: 100%;
            height: 180px;
        }
        .auto-style2 {
            text-align: center;
            font-size: xx-large;
            color: #FF3300;
            background-color: #FF9933;
        }
        .auto-style6 {
        }
        .auto-style7 {
            width: 21px;
            height: 17px;
        }
        .auto-style8 {
            text-decoration: none;
        }
        .auto-style9 {
            background-color: #66FF33;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="auto-style1">
        <tr>
            <td class="auto-style2" colspan="3"><strong><span id="labQLMH">QUẢN LÝ LỚP HỌC</span></strong></td>
            <td>
                <asp:Button ID="ButThoat" runat="server" Text="Đăng xuất" Width="97px" OnClick="ButThoat_Click" />
            </td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
            <td >&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
            <td >&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td id="labNhapmamon">Mã Lớp</td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" Width="167px"></asp:TextBox>
            </td>
            <td id="labNhapmamon0">Tên lớp</td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td id="labNhaptenmon">Ngành Học</td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource2" DataTextField="TenNganh" DataValueField="MaNganh" Width="150px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:Demo1ConnectionString %>" SelectCommand="SELECT * FROM [NganhHoc]"></asp:SqlDataSource>
            </td>
            <td id="labChonKHoa"></td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <asp:Button ID="ButThemLop" runat="server" Text="Thêm lớp" Width="172px" OnClick="ButThemLop_Click" />
            </td>
            <td>
                <asp:Button ID="ButCapnhat" runat="server" Text="Cập Nhật" Width="161px" OnClick="ButCapnhat_Click" />
            </td>
            <td>
                <span><a href="TrangPhongDaoTao.aspx" class="auto-style8"><img alt="" src="images/Arrow_back.png" class="auto-style7" /><span class="auto-style9"> BACK</span></a></span></td>
        </tr>
        <tr>
            <td class="auto-style6" colspan="4">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="MaLop" DataSourceID="SqlDataSource1">
                    <Columns>
                        <asp:BoundField DataField="MaLop" HeaderText="Mã lớp" ReadOnly="True" SortExpression="MaLop" />
                        <asp:BoundField DataField="MaNganh" HeaderText="Mã ngành" SortExpression="MaNganh" />
                        <asp:BoundField DataField="TenLop" HeaderText="Tên lớp" SortExpression="TenLop" />
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Demo1ConnectionString %>" SelectCommand="SELECT * FROM [Lop]"></asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
